package com.gexin.service.memberAcitivty;

import com.gexin.model.activity.InviteeRelative;
import com.gexin.model.activity.MemberInfo;
import com.gexin.model.activity.MemberIntegralLog;

public class UnitTest {

    public void unitInsert() {
        for (int i = 1; i < 10; i++) {
            for (int j = 1; j < 10; j++) {
                String insert = i + "" + j;
                InviteeRelative inviteeRelative = new InviteeRelative();
                inviteeRelative.setInviterId(i + "");
                inviteeRelative.setUserId(insert);
                inviteeRelative.setId(insert);
                inviteeRelative.save();

                MemberIntegralLog memberIntegralLog = new MemberIntegralLog();
                memberIntegralLog.setId(i + "" + j);
                memberIntegralLog.setType(6);
                memberIntegralLog.setUserId(insert);
                memberIntegralLog.setCreateTime(new Long("1621066859000"));
                memberIntegralLog.save();

                MemberInfo memberInfo = new MemberInfo();
                memberInfo.setId(insert);
                memberInfo.setUserId(insert);
                memberInfo.setLevel(2);
                memberInfo.save();
            }
        }
    }

}
